
<html>
    <head>
        <title>PHP Receive Files</title>
    </head>
    
    <body>
    <center>
        <h1 style="color: red; font-weight: bold">
            Retrieving Data...
        </h1>
        <font style="color: aquamarine; font-weight: bold;font-size: 20pt">
            Here are contents of file : 
            <br>
            <font style="color: black">
                <?php>
                $handle = fopen($_FILES['userFile']['tmp_name'], "r");
                while (!feof($handle)) {
                    $text = fgets($handle);
                    echo $text, "<br>";
                }
                fclose($handle);
                ?>
            </font>
        </font>
    </center>
    </body>
</html>